#ifdef HAVE_CONFIG_H
#        include <config.h>
#endif

#include <sys/types.h>
#include <sys/stat.h>
#include <unistd.h>
#include <string.h>
#include <stdio.h>

#include <gdk/gdkkeysyms.h>
#include <gtk/gtk.h>

#include "support.h"
#include "newinfo.h"
#include "clist.h"
#include "file.h"
#include "newwindow.h"

#define GLADE_HOOKUP_OBJECT(component,widget,name) \
        g_object_set_data_full (G_OBJECT (component), name, \
                gtk_widget_ref (widget), (GDestroyNotify) gtk_widget_unref)

#define GLADE_HOOKUP_OBJECT_NO_REF(component,widget,name) \
        g_object_set_data (G_OBJECT (component), name, widget)     

 GtkWidget*
create_window_new_info (struct newinfo_struct *newinfo,struct clist_struct *clist)
{
	GtkWidget *window;
	window=create_new_info_window(newinfo,clist);
	gtk_window_set_title (GTK_WINDOW (window), _(
	"\346\226\260\345\273\272\344\270\200\344\270\252\344\277\241\346\201\257"));
	gtk_window_set_icon_name (GTK_WINDOW (window), "gtk-new");
	
	g_signal_connect ((gpointer) window, "destroy",
                   G_CALLBACK (on_window_new_info_destroy),
                    NULL);
	g_signal_connect ((gpointer) newinfo->button_help, "clicked",
                    G_CALLBACK (on_button_new_info_help_clicked),
                    (gpointer)window);
	g_signal_connect ((gpointer) newinfo->button_cancel, "clicked",
                    G_CALLBACK (on_button_new_info_cancel_clicked),
                   (gpointer)window);
    
	g_signal_connect ((gpointer) newinfo->button_ok, "clicked",
                    G_CALLBACK (on_button_new_info_ok_clicked),
                    (gpointer)newinfo);
         
	return window;
}          
